<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<style type="text/css">
.roleul li {
	float: left; min-width: 100px
}
</style>
<form:form commandName="model" cssClass="validate"
	action="app/portal/save">
	<div class="header">
		<h3>门户部件配置</h3>
	</div>
	<form:hidden path="id" />
	<table class=" form-table">
		<tbody>
			<tr>
				<td class="td1">标题：</td>
				<td class="td2"><form:input path="title" cssClass="required" />
				</td>
			</tr>
			<tr>
				<td class="td1">图标 ：</td>
				<td class="td2"><isperp:photoUploader imgName="iconImg"
						cutType="0" imgWidth="16" imgHeight="16" imgSrc="${model.iconImg}"
						id="photo" imgPath="portal/${model.title }"
						imgFormat="png/gif/jpg" showDescription="false"></isperp:photoUploader>
				</td>
			</tr>
			<tr>
				<td class="td1">类型：</td>
				<td class="td2"><form:select path="contentType"
						cssClass="required">
						<form:option value="iframe">iframe</form:option>
					</form:select>
				</td>
			</tr>
			<tr>
				<td class="td1">链接地址：</td>
				<td class="td2"　><form:input path="contentUrl"
						cssClass="required" cssStyle="width:85%" /></td>
			</tr>
			<tr>
				<td class="td1">高度：</td>
				<td class="td2"　><form:input path="height"
						cssClass="required number" />
				</td>
			</tr>

			<tr>
				<td class="td1">排序：</td>
				<td class="td2"><form:input path="orderNum"
						cssClass="required number" /></td>
			</tr>
			<tr>
				<td class="td1">角色：</td>
				<td class="td2" style="padding:10px"><ul class="roleul">
						<form:checkboxes items="${roles }" cssClass="chk" element="li"
							itemLabel="name" itemValue="id" path="roles" />
					</ul></td>
			</tr>
		</tbody>
	</table>


</form:form>
<isperp:buttonList>
	<button class="submit" onclick="isperp.submitForm();return false;">
		<span class="icon icon-save"></span>提交
	</button>
</isperp:buttonList>